import {App} from "vue";
import component from "./components/index";
import VueAnimXYZ from "@animxyz/vue3";
import "@animxyz/core/dist/animxyz.css";
import "@mdi/font/css/materialdesignicons.css";
import NProgress from "nprogress";
import "nprogress/nprogress.css";
import ColorPicker from 'colorpicker-v3'  // 注册组件
import 'colorpicker-v3/style.css' // 引入样式文件

const IceSoft = {
    install: (app: App) => {
        NProgress.configure({
            easing: "ease", // 动画方式
            speed: 500, // 递增进度条的速度
            showSpinner: false, // 是否显示加载 icon
            trickleSpeed: 200, // 自动递增间隔
            minimum: 0.3, // 初始化时的最小百分比
        });
        app.use(component);
        app.use(VueAnimXYZ);
        app.use(ColorPicker);
    },
};

export default IceSoft;
